/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.losalpes.catalogo.beans;

import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;

/**
 *
 * @author user
 */

public class ReportsBean {

    /** Creates a new instance of ReportsBean */

    private String report;

    public ReportsBean() {

        
    }

    /**
     * 
     * @return
     */
    public String selectReport() {

        String action = null;

        System.out.println("Print: " + report);

        if(report.equals("Reporte de ventas diarias")) {

            action = "r1";

        } else if (report.equals("Reporte del producto mas vendido")) {

            action = "r2";

        } else if (report.equals("Reporte de compras realizadas")) {

            action = "r3";

        } else {
            action = "/pages/reports.jsp";
        }

        return action;
    }

    public String getReport() {
        return report;
    }

    public void setReport(String report) {
        this.report = report;
    }

    
}
